using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class BatchGetContactProfileRequest : GeneratedMessageLite<BatchGetContactProfileRequest, BatchGetContactProfileRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<BatchGetContactProfileRequest, BatchGetContactProfileRequest.Builder>
		{
			private bool resultIsReadOnly;
			private BatchGetContactProfileRequest result;
			protected override BatchGetContactProfileRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override BatchGetContactProfileRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override BatchGetContactProfileRequest DefaultInstanceForType
			{
				get
				{
					return BatchGetContactProfileRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint Mode
			{
				get
				{
					return this.result.Mode;
				}
				set
				{
					this.SetMode(value);
				}
			}
			public uint Count
			{
				get
				{
					return this.result.Count;
				}
				set
				{
					this.SetCount(value);
				}
			}
			public IPopsicleList<SKBuiltinString_t> UserNameListList
			{
				get
				{
					return this.PrepareBuilder().userNameList_;
				}
			}
			public int UserNameListCount
			{
				get
				{
					return this.result.UserNameListCount;
				}
			}
			public Builder()
			{
				this.result = BatchGetContactProfileRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(BatchGetContactProfileRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private BatchGetContactProfileRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					BatchGetContactProfileRequest other = this.result;
					this.result = new BatchGetContactProfileRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override BatchGetContactProfileRequest.Builder Clear()
			{
				this.result = BatchGetContactProfileRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override BatchGetContactProfileRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new BatchGetContactProfileRequest.Builder(this.result);
				}
				return new BatchGetContactProfileRequest.Builder().MergeFrom(this.result);
			}
			public override BatchGetContactProfileRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override BatchGetContactProfileRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is BatchGetContactProfileRequest)
				{
					return this.MergeFrom((BatchGetContactProfileRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override BatchGetContactProfileRequest.Builder MergeFrom(BatchGetContactProfileRequest other)
			{
				return this;
			}
			public override BatchGetContactProfileRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override BatchGetContactProfileRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(BatchGetContactProfileRequest._batchGetContactProfileRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = BatchGetContactProfileRequest._batchGetContactProfileRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasMode = input.ReadUInt32(ref this.result.mode_);
							continue;
						}
						if (num3 == 24u)
						{
							this.result.hasCount = input.ReadUInt32(ref this.result.count_);
							continue;
						}
						if (num3 == 34u)
						{
							input.ReadMessageArray<SKBuiltinString_t>(num, text, this.result.userNameList_, SKBuiltinString_t.DefaultInstance, extensionRegistry);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public BatchGetContactProfileRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public BatchGetContactProfileRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public BatchGetContactProfileRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public BatchGetContactProfileRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public BatchGetContactProfileRequest.Builder SetMode(uint value)
			{
				this.PrepareBuilder();
				this.result.hasMode = true;
				this.result.mode_ = value;
				return this;
			}
			public BatchGetContactProfileRequest.Builder ClearMode()
			{
				this.PrepareBuilder();
				this.result.hasMode = false;
				this.result.mode_ = 0u;
				return this;
			}
			public BatchGetContactProfileRequest.Builder SetCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCount = true;
				this.result.count_ = value;
				return this;
			}
			public BatchGetContactProfileRequest.Builder ClearCount()
			{
				this.PrepareBuilder();
				this.result.hasCount = false;
				this.result.count_ = 0u;
				return this;
			}
			public SKBuiltinString_t GetUserNameList(int index)
			{
				return this.result.GetUserNameList(index);
			}
			public BatchGetContactProfileRequest.Builder SetUserNameList(int index, SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.userNameList_[index] = value;
				return this;
			}
			public BatchGetContactProfileRequest.Builder SetUserNameList(int index, SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.userNameList_[index] = builderForValue.Build();
				return this;
			}
			public BatchGetContactProfileRequest.Builder AddUserNameList(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.userNameList_.Add(value);
				return this;
			}
			public BatchGetContactProfileRequest.Builder AddUserNameList(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.userNameList_.Add(builderForValue.Build());
				return this;
			}
			public BatchGetContactProfileRequest.Builder AddRangeUserNameList(IEnumerable<SKBuiltinString_t> values)
			{
				this.PrepareBuilder();
				this.result.userNameList_.Add(values);
				return this;
			}
			public BatchGetContactProfileRequest.Builder ClearUserNameList()
			{
				this.PrepareBuilder();
				this.result.userNameList_.Clear();
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int ModeFieldNumber = 2;
		public const int CountFieldNumber = 3;
		public const int UserNameListFieldNumber = 4;
		private static readonly BatchGetContactProfileRequest defaultInstance;
		private static readonly string[] _batchGetContactProfileRequestFieldNames;
		private static readonly uint[] _batchGetContactProfileRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasMode;
		private uint mode_;
		private bool hasCount;
		private uint count_;
		private PopsicleList<SKBuiltinString_t> userNameList_ = new PopsicleList<SKBuiltinString_t>();
		private int memoizedSerializedSize = -1;
		public static BatchGetContactProfileRequest DefaultInstance
		{
			get
			{
				return BatchGetContactProfileRequest.defaultInstance;
			}
		}
		public override BatchGetContactProfileRequest DefaultInstanceForType
		{
			get
			{
				return BatchGetContactProfileRequest.DefaultInstance;
			}
		}
		protected override BatchGetContactProfileRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint Mode
		{
			get
			{
				return this.mode_;
			}
		}
		public uint Count
		{
			get
			{
				return this.count_;
			}
		}
		public IList<SKBuiltinString_t> UserNameListList
		{
			get
			{
				return this.userNameList_;
			}
		}
		public int UserNameListCount
		{
			get
			{
				return this.userNameList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasMode && this.hasCount && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasMode)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.Mode);
				}
				if (this.hasCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Count);
				}
				using (IEnumerator<SKBuiltinString_t> enumerator = this.UserNameListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						SKBuiltinString_t current = enumerator.get_Current();
						num += CodedOutputStream.ComputeMessageSize(4, current);
					}
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private BatchGetContactProfileRequest()
		{
		}
		public SKBuiltinString_t GetUserNameList(int index)
		{
			return this.userNameList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] batchGetContactProfileRequestFieldNames = BatchGetContactProfileRequest._batchGetContactProfileRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, batchGetContactProfileRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasMode)
			{
				output.WriteUInt32(2, batchGetContactProfileRequestFieldNames[2], this.Mode);
			}
			if (this.hasCount)
			{
				output.WriteUInt32(3, batchGetContactProfileRequestFieldNames[1], this.Count);
			}
			if (this.userNameList_.Count > 0)
			{
				output.WriteMessageArray<SKBuiltinString_t>(4, batchGetContactProfileRequestFieldNames[3], this.userNameList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasMode)
			{
				num ^= this.mode_.GetHashCode();
			}
			if (this.hasCount)
			{
				num ^= this.count_.GetHashCode();
			}
			using (IEnumerator<SKBuiltinString_t> enumerator = this.userNameList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					SKBuiltinString_t current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object object_0)
		{
			BatchGetContactProfileRequest batchGetContactProfileRequest = object_0 as BatchGetContactProfileRequest;
			if (batchGetContactProfileRequest == null)
			{
				return false;
			}
			if (this.hasBaseRequest != batchGetContactProfileRequest.hasBaseRequest || (this.hasBaseRequest && !this.baseRequest_.Equals(batchGetContactProfileRequest.baseRequest_)))
			{
				return false;
			}
			if (this.hasMode != batchGetContactProfileRequest.hasMode || (this.hasMode && !this.mode_.Equals(batchGetContactProfileRequest.mode_)))
			{
				return false;
			}
			if (this.hasCount != batchGetContactProfileRequest.hasCount || (this.hasCount && !this.count_.Equals(batchGetContactProfileRequest.count_)))
			{
				return false;
			}
			if (this.userNameList_.Count != batchGetContactProfileRequest.userNameList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.userNameList_.Count; i++)
			{
				if (!this.userNameList_[i].Equals(batchGetContactProfileRequest.userNameList_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<BatchGetContactProfileRequest, BatchGetContactProfileRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<BatchGetContactProfileRequest, BatchGetContactProfileRequest.Builder>.PrintField("Mode", this.hasMode, this.mode_, writer);
			GeneratedMessageLite<BatchGetContactProfileRequest, BatchGetContactProfileRequest.Builder>.PrintField("Count", this.hasCount, this.count_, writer);
			GeneratedMessageLite<BatchGetContactProfileRequest, BatchGetContactProfileRequest.Builder>.PrintField<SKBuiltinString_t>("UserNameList", this.userNameList_, writer);
		}
		public static BatchGetContactProfileRequest ParseFrom(byte[] data)
		{
			return BatchGetContactProfileRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private BatchGetContactProfileRequest MakeReadOnly()
		{
			this.userNameList_.MakeReadOnly();
			return this;
		}
		public static BatchGetContactProfileRequest.Builder CreateBuilder()
		{
			return new BatchGetContactProfileRequest.Builder();
		}
		public override BatchGetContactProfileRequest.Builder ToBuilder()
		{
			return BatchGetContactProfileRequest.CreateBuilder(this);
		}
		public override BatchGetContactProfileRequest.Builder CreateBuilderForType()
		{
			return new BatchGetContactProfileRequest.Builder();
		}
		public static BatchGetContactProfileRequest.Builder CreateBuilder(BatchGetContactProfileRequest prototype)
		{
			return new BatchGetContactProfileRequest.Builder(prototype);
		}
		static BatchGetContactProfileRequest()
		{
			BatchGetContactProfileRequest.defaultInstance = new BatchGetContactProfileRequest().MakeReadOnly();
			BatchGetContactProfileRequest._batchGetContactProfileRequestFieldNames = new string[]
			{
				"BaseRequest",
				"Count",
				"Mode",
				"UserNameList"
			};
			BatchGetContactProfileRequest._batchGetContactProfileRequestFieldTags = new uint[]
			{
				10u,
				24u,
				16u,
				34u
			};
			object.ReferenceEquals(micromsg.Proto.BatchGetContactProfileRequest.Descriptor, null);
		}
	}
}
